stylecontext: add gtk_render_icon_surface
authorAlexander Larsson <alexl@redhat.com>
Mon, 24 Jun 2013 10:35:39 +0000 (12:35 +0200)
committerAlexander Larsson <alexl@redhat.com>
Wed, 3 Jul 2013 12:39:26 +0000 (14:39 +0200)
commit91a268f00e26448325cacf81536cfe2ed30a52d1
tree95a443fb44259fc3d9d6c8b916839d42c606f9f4
parent1d0bb3e010f397d89e03f2a8129d7a0f37ea5966
stylecontext: add gtk_render_icon_surface

This draws an icon from a cairo_surface. We want to use this more rather
than render_icon as this means we can skip the pixbuf to surface
conversion (including allocation and alpha premultiplication) at
render time, plus we can use create_similar_image which may allow
faster rendering.
gtk/gtkstylecontext.c
gtk/gtkstylecontext.h
gtk/gtkthemingengine.c
gtk/gtkthemingengine.h